<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns associative array containing dst, offset and the timezone name</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="datetimezone.gettransitions.html">DateTimeZone::getTransitions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="datetimezone.listidentifiers.html">DateTimeZone::listIdentifiers</a></div>
 <div class="up"><a href="class.datetimezone.html">DateTimeZone</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="datetimezone.listabbreviations" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DateTimeZone::listAbbreviations</h1>
  <h1 class="refname">timezone_abbreviations_list</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0)</p><p class="refpurpose"><span class="refname">DateTimeZone::listAbbreviations</span> -- <span class="refname">timezone_abbreviations_list</span> &mdash; <span class="dc-title">Returns associative array containing dst, offset and the timezone name</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-datetimezone.listabbreviations-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span> <span class="methodname"><strong>DateTimeZone::listAbbreviations</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">过程化风格</p>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><a href="function.timezone-abbreviations-list.html" class="methodname">timezone_abbreviations_list</a></span>
    ( <span class="methodparam">void</span>
   )</div>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-datetimezone.listabbreviations-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns array on success 或者在失败时返回 <strong><code>FALSE</code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-datetimezone.listabbreviations-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-2217">
    <p><strong>Example #1 A <span class="function"><a href="function.timezone-abbreviations-list.html" class="function">timezone_abbreviations_list()</a></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$timezone_abbreviations&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">DateTimeZone</span><span style="color: #007700">::</span><span style="color: #0000BB">listAbbreviations</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$timezone_abbreviations</span><span style="color: #007700">[</span><span style="color: #DD0000">"acst"</span><span style="color: #007700">]);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
Array
(
    [0] =&gt; Array
        (
            [dst] =&gt; 1
            [offset] =&gt; -14400
            [timezone_id] =&gt; America/Porto_Acre
        )

    [1] =&gt; Array
        (
            [dst] =&gt; 1
            [offset] =&gt; -14400
            [timezone_id] =&gt; America/Eirunepe
        )

    [2] =&gt; Array
        (
            [dst] =&gt; 1
            [offset] =&gt; -14400
            [timezone_id] =&gt; America/Rio_Branco
        )

    [3] =&gt; Array
        (
            [dst] =&gt; 1
            [offset] =&gt; -14400
            [timezone_id] =&gt; Brazil/Acre
        )

)
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-datetimezone.listabbreviations-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.timezone-identifiers-list.html" class="function" rel="rdfs-seeAlso">timezone_identifiers_list()</a> - 别名 DateTimeZone::listIdentifiers</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="datetimezone.gettransitions.html">DateTimeZone::getTransitions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="datetimezone.listidentifiers.html">DateTimeZone::listIdentifiers</a></div>
 <div class="up"><a href="class.datetimezone.html">DateTimeZone</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
